<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<!--#    Copyright 2011 Tri-County Electric Cooperative, St. Matthews, South Carolina
#    This file is part of COOPIP.
#    COOPIP is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    COOPIP is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with COOPIP.  If not, see <http://www.gnu.org/licenses/>.-->

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>intranetdepartment.html</title>
  <link rel="stylesheet" type="text/css" href="/style.css" />
</head>

<body style="background-image:url('/intranetbackgroundimages/{{DepartmentBackgroundImage}}');background-size: 100%;">



<div id="logo">
    <img src="/media/TCECLogo.png" name="graphics1" align="left" border="0" height="84" width="198">
</div>

<div id="login">
Intranet Department Website.

    {% if not Permission %}
    <form method="post" action="">
    Login:  {{form.Username}} Password:  {{form.Password}} <input value="Login" type="submit">
    {% else %}  <!---# else...  display the rest of the page -->
    {{LoginStatus}} &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href="/coopip/logout/">Logout</a> 
    {% endif %}
    </form>
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href="/">Main Menu</a>
</div>




<div id="intranetdepartmentmessages">
    <h1>{{DepartmentName}} Department</h1>
    {% if DisplayAdminLink %}
        {% if EditorPermission %}
            <a href="/admin/">Intranet Admin</a><br>
        {% endif %}
    {% endif %}
    <h1>Calendar</h1>
    <table>
        <tr><th>Event</th><th>Start</th><th>End</th><th>Notes</th></tr>
    {% for name, startdate, enddate, resource in EventList %}
        <tr><td>{{name}}</td><td>&nbsp&nbsp{{startdate|date:"m/d/Y"}}</td><td>&nbsp&nbsp{{enddate|date:"m/d/Y"}}&nbsp&nbsp</td><td>{{resource}}</td></tr>
    {% empty %}
        <tr><td>There are no upcoming events listed.</td></tr>
    {% endfor %}
    </table>


    <table width=520px>
        {% if EditorPermission %}
            <tr><td align="right"><a href="/coopip/intranet/department/message/">Edit Messages</a></td></tr>
        {% endif %} 

    {% for title, text, date, username, FileList in MessageList %}
            <tr><td><h2>{{title}}</h2></td><td style="white-space: nowrap;"><small>{{date}} {{username}}</small></td></tr>
            <tr><td>{{text|linebreaks}}</td></tr>
            {% for id, filename in FileList %}
                <tr><td>&nbsp</td><td><a href="/coopip/intranet/department/message/file/{{ id }}/">{{ filename }}</a></td></tr>
            {% endfor %}
    {% endfor %}
    </table>
</div>








</body></html>
